export default {

    state: { //定义数据
        userIfo: ''
    },

    mutations: { //定义方法
        getUserIfo(state, val) {
            state.userIfo = val
        }
    },
    actions: { //异步触发
        getUserIfosync(context, val) {
            context.commit("getUserIfo", val) //异步触发
        }
    },
    namespaced: true, //添加命名空间
}